; 求1到10的对数
dseg segment
    value db 4
    answer dw ?
    tab dw 0,3010,4771,6021,7782,8451,9031,9542,10000
dseg ends

cseg segment
    assume cs:cseg,ds:dseg
start:
    mov ax,dseg
    mov ds,ax

    mov al,value
    xor ah,ah
    dec ax
    add ax,ax
    mov bx,ax
    
    mov ax,tab[bx]
    mov answer,ax

    mov ah,4ch
    int 21h
cseg ends

end start